home *** CD-ROM | disk | FTP | other *** search
- Path: cnn.Princeton.EDU!franck!tim
- From: tim@franck (Tim Hollebeek)
- Newsgroups: comp.lang.c++
- Subject: Re: Template delaration problem
- Date: 26 Jan 1996 23:12:36 GMT
- Organization: Princeton University
- Distribution: world
- Message-ID: <4ebn54$nra@cnn.Princeton.EDU>
- References: <4e8c1i$mpp@phoenix.dse.beckman.com> <ENNO.96Jan26201329@kitz.inferenzsysteme.informatik.th-darmstadt.de>
- NNTP-Posting-Host: franck.princeton.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Enno Sandner (enno@inferenzsysteme.informatik.th-darmstadt.de) wrote:
- : In article <4e8c1i$mpp@phoenix.dse.beckman.com> jawalker@ccgate.dp.beckman.com (Jack Walker) writes:
-
- : My compiler (BC++ 4.52) complains about the following declaration:
-
- : template < class T, T init_val>
- : class foo
- : { . . . };
-
- : Specifically it complains about the line cntaining the template
- : keyword regarding the type of init_val. Is it valid to define template
- : arguments in terms of other template arguments?
-
- : Yes, but it's a new feature that isn't supported by most?any compiler(s).
-
- g++ handles it fine (version 2.7.2).
-
- --
- Tim Hollebeek | Everything above is a true statement, for sufficiently
- PChem Grad Student | false values of true.
- Princeton Univ. | tim@wfn-shop.princeton.edu
- -------------------| http://wfn-shop.princeton.edu/~tim
-